package com.expect.admin.busmanagement.service.vo;

import java.util.List;

import com.expect.admin.busmanagement.data.dataobject.Bus;
import com.expect.admin.service.vo.AttachmentVo;
import com.expect.admin.service.vo.LcrzbVo;
import com.expect.admin.utils.DateUtil;
import com.expect.admin.utils.StringUtil;

public class BusVo {
	private String id;
	private String bh;//车辆编号

	private String busNo;//车牌号
	private String userName;//驾驶员
	private String applicationDate;//申请日期
	private String date;//申请时间日期
	private String time;//申请时间 时间
	private String applicationMoney;//申请金额
	private String paymentWay;//支付方式
	private String applicationReason;//申请事由
	private String applicationStatement;//申请状态
	private String applicationClassify;//申请分类
	private String applicationOption;//申请选项：加油、维修、保养
	private String lcbs;//流程标识
	private String isReturned;//是否退回
	private List<AttachmentVo> attachmentList;//附件展示
	private String sbd;//申办单
	private List<LcrzbVo> lcrzList;//流程日志
	private String approveAdvice;//审批意见
	
	public BusVo(){
		
	}
	
	public BusVo(Bus bus){
		this.id = bus.getId();
		this.bh = bus.getBh();
		this.busNo = bus.getBusNo();
		this.userName = bus.getUserName().getFullName();
//		if(bus.getApplicationDate() != null){
//			this.applicationDate = DateUtil.format(bus.getApplicationDate(), DateUtil.zbFormat);
//		}
		if(bus.getApplicationDate() != null){
			this.date = DateUtil.format(bus.getApplicationDate(), DateUtil.zbFormat);
			this.time = DateUtil.format(bus.getApplicationDate(), DateUtil.timeFormat);
			this.applicationDate = DateUtil.format(bus.getApplicationDate(), DateUtil.fullFormat);
		}
		else {
			this.applicationDate = "";
			this.date = "";
			this.time = "";
		}
		this.applicationMoney = bus.getApplicationMoney();
		this.paymentWay = bus.getPaymentWay();
		this.applicationReason = bus.getApplicationReason();
		this.applicationStatement = bus.getApplicationStatement();
		this.applicationClassify = bus.getApplicationClassify();
		this.applicationOption = bus.getApplicationOption();
		this.lcbs = bus.getLcbs();
		if(StringUtil.isBlank(bus.getSbd())){
			this.sbd = "";
		}else{
			this.sbd = bus.getSbd();
		}
	}
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	
	public String getBh(){
		return bh;
	}
	public void setBh(String bh){
		this.bh = bh;
	}
	
	public String getBusNo() {
		return busNo;
	}
	public void setBusNo(String busNo){
		this.busNo = busNo;
	}
	
	public String getUserName(){
		return userName;
	}
	public void setUserName(String userName){
		this.userName = userName;
	}

	public String getApplicationDate(){
		return applicationDate;
	}
	public void setApplicationDate(String applicationDate){
		this.applicationDate = applicationDate;
	}
	
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}

	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	
	public String getApplicationMoney(){
		return applicationMoney;
	}
	public void setApplicationMoney(String applicationMoney){
		this.applicationMoney = applicationMoney;
	}
	
	public String getPaymentWay(){
		return paymentWay;
	}
	public void setPaymentWay(String paymentWay){
		this.paymentWay = paymentWay;
	}
	
	public String getApplicationReason(){
		return applicationReason;
	}
	public void setApplicationReason(String applicationReason){
		this.applicationReason = applicationReason;
	}
	
	public String getApplicationStatement(){
		return applicationStatement;
	}
	public void setApplicationStatement(String applicationStatement){
		this.applicationStatement = applicationStatement;
	}
	
	public String getApplicationClassify(){
		return applicationClassify;
	}
	public void setApplicationClassify(String applicationClassify){
		this.applicationClassify = applicationClassify;
	}
	
	public String getApplicationOption(){
		return applicationOption;
	}
	public void setApplicationOption(String applicationOption){
		this.applicationOption = applicationOption;
	}
	
	public String getLcbs() {
		return lcbs;
	}
	public void setLcbs(String lcbs){
		this.lcbs = lcbs;
	}

	public String getIsReturned(){
		return isReturned;
	}
	public void setIsReturned(String isReturned){
		this.isReturned = isReturned;
	}
	
	public List<AttachmentVo> getAttachmentList(){
		return attachmentList;
	}
	public void setAttachmentList(List<AttachmentVo> attachmentList){
		this.attachmentList = attachmentList;
	}
	
	public String getSbd(){
		return sbd;
	}
	public void setSbd(String sbd){
		this.sbd = sbd;
	}

	public List<LcrzbVo> getLcrzList(){
		return lcrzList;
	}
	public void setLcrzList(List<LcrzbVo> lcrzList){
		this.lcrzList = lcrzList;
	}
	
	public String getApproveAdvice(){
		return approveAdvice;
	}
	public void setApproveAdvice(String approveAdvice){
		this.approveAdvice = approveAdvice;
	}
}
